package thinking.java.initalization.and.clean.up;

/**
 * @author GaoFeng
 * @date 2020/1/2 14:13
 */
public class MethodInit2 {

    // i还没有初始化
    // int j = g(i);
    int i = f();
    int j = g(i);

    int f() {
        return 11;
    }

    int g(int n) {
        return n * 2;
    }

    public static void main(String[] args) {
        MethodInit2 methodInit2 = new MethodInit2();
        System.out.println(methodInit2.i + "-" + methodInit2.j);
    }

}
